<?php
// +---------------------------------------------------------------------+
// | OneBase    | [ WE CAN DO IT JUST THINK ]                            |
// +---------------------------------------------------------------------+
// | Licensed   | http://www.apache.org/licenses/LICENSE-2.0 )           |
// +---------------------------------------------------------------------+
// | Author     | Bigotry <3162875@qq.com>                               |
// +---------------------------------------------------------------------+
// | Repository | https://gitee.com/Bigotry/OneBase                      |
// +---------------------------------------------------------------------+

namespace app\admin\validate;

/**
 * 验证器
 */
class Dian extends AdminBase
{
    
    // 验证规则
    protected $rule =   [
        'title'          => 'require',
        'username'       => 'require',
		'phone'       => 'require',
		'address'       => 'require',
        'province'       => 'require',
        'city'       => 'require',
        'county'       => 'require',
        'bl'       => 'require',
    ];

    // 验证提示
    protected $message  =   [
        'title.require'         => '门店名不能为空',
        'username.require'      => '店主不能为空',
		'phone.require'         => '联系电话不能为空',
		'address.require'         => '地址不能为空',
        'province.require'         => '请选择省份',
        'city.require'         => '请选择市',
        'county.require'         => '请选择区县',
        'bl.require'         => '分润比例不能为空',
    ];
    
    // 应用场景
    protected $scene = [
        'edit'  =>  ['title','phone','address','province','city','county','bl']
    ];
}
